package com.ruoyi.stock.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.stock.mapper.StockBasicInfoMapper;
import com.ruoyi.stock.domain.StockBasicInfo;
import com.ruoyi.stock.service.IStockBasicInfoService;

/**
 * 股票基础信息Service业务层处理
 * 
 * @author lsx
 * @date 2025-01-06
 */
@Service
public class StockBasicInfoServiceImpl implements IStockBasicInfoService 
{
    @Autowired
    private StockBasicInfoMapper stockBasicInfoMapper;

    /**
     * 查询股票基础信息
     * 
     * @param id 股票基础信息主键
     * @return 股票基础信息
     */
    @Override
    public StockBasicInfo selectStockBasicInfoById(Long id)
    {
        return stockBasicInfoMapper.selectStockBasicInfoById(id);
    }

    /**
     * 查询股票基础信息列表
     * 
     * @param stockBasicInfo 股票基础信息
     * @return 股票基础信息
     */
    @Override
    public List<StockBasicInfo> selectStockBasicInfoList(StockBasicInfo stockBasicInfo)
    {
        return stockBasicInfoMapper.selectStockBasicInfoList(stockBasicInfo);
    }

    /**
     * 新增股票基础信息
     * 
     * @param stockBasicInfo 股票基础信息
     * @return 结果
     */
    @Override
    public int insertStockBasicInfo(StockBasicInfo stockBasicInfo)
    {
        return stockBasicInfoMapper.insertStockBasicInfo(stockBasicInfo);
    }

    /**
     * 修改股票基础信息
     * 
     * @param stockBasicInfo 股票基础信息
     * @return 结果
     */
    @Override
    public int updateStockBasicInfo(StockBasicInfo stockBasicInfo)
    {
        return stockBasicInfoMapper.updateStockBasicInfo(stockBasicInfo);
    }

    /**
     * 批量删除股票基础信息
     * 
     * @param ids 需要删除的股票基础信息主键
     * @return 结果
     */
    @Override
    public int deleteStockBasicInfoByIds(Long[] ids)
    {
        return stockBasicInfoMapper.deleteStockBasicInfoByIds(ids);
    }

    /**
     * 删除股票基础信息信息
     * 
     * @param id 股票基础信息主键
     * @return 结果
     */
    @Override
    public int deleteStockBasicInfoById(Long id)
    {
        return stockBasicInfoMapper.deleteStockBasicInfoById(id);
    }
}
